<?php
require('lib/verify.php');
$_category = "warmath";
$_title = "Register Character: Complete";
require('lib/head.php');

$system_id = $_POST["system_id"];
$character_name = $_POST["character_name"];
$character_class = $_POST["character_class"];
$forum_id = $pun_user["id"];


$sql = "update wm_characters set character_active = '0' where character_forum_id = '$forum_id'";

$result = $db->query($sql);

$sql = "insert into wm_characters (character_name, character_class, character_system_id, character_forum_id, character_active) values ('$character_name', '$character_class', $system_id, $forum_id, '1')";

$result = $db->query($sql);

?>

<?php
boxTop($_title);
?><p>

Thanks!  Your registration is now complete.
</p><br>
<p>
<a href="/">Return to Warmath</a>
</p>

<?php
boxBot();

?>

<?php
require('lib/foot.php');
?>

